import {fromJS} from 'immutable'
import {RECEIVE_DETAIL_DATA} from '../../../store/actionTypes'
//使用immutable来防止state数据被改变，
const defaultState = fromJS({
    detailObj:{}
});
export default (state = defaultState,action) =>{
    if(action.type==RECEIVE_DETAIL_DATA){
        return state.set('detailObj',action.data);
    }
   
    return state;
}
